package xuegao.study.mall.admin.service.pms;


import org.springframework.transaction.annotation.Transactional;
import xuegao.study.mall.admin.dto.PmsProductAttributeParam;
import xuegao.study.mall.common.dto.PmsProductAttrInfo;
import xuegao.study.mall.common.model.pms.PmsProductAttribute;
import xuegao.study.mall.common.model.pms.PmsProductAttributeCategory;

import java.util.List;

public interface PmsProductAttributeService {

    List<PmsProductAttribute> getList(Long cid, Integer type, Integer pageNum, Integer pageSize);

    List<PmsProductAttributeCategory> categroyList(Integer pageNum, Integer pageSize);

    int deleteCategoryById(Long id);

    int addCategory(String name);

    int updateCategory(Long id, String name);

    List<PmsProductAttrInfo> getProductAttrInfo(Long productCategoryId);

    PmsProductAttribute getItem(Long id);

    int delete(List<Long> ids);

    @Transactional
    int create(PmsProductAttributeParam pmsProductAttributeParam);
    @Transactional
    int update(Long id, PmsProductAttributeParam param);
}
